package cn.sdormitory.smartdor.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: lx
 * @date: 2023/10/7 9:43
 * @description:
 */
@Data
@TableName("t_sd_attence_track_record")
public class SdAttenceTrackRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
    @ApiModelProperty(value = "ID")
    private Long id;

    /**
     * studentId
     */
    @ApiModelProperty(value = "studentId")
    private Long studentId;


    /**
     * bdormitoryId
     */
    @ApiModelProperty(value = "bdormitoryId")
    private Long bdormitoryId;

    /**
     * 第几栋楼
     */
    @ApiModelProperty(value = "宿舍栋号")
    private String buildingNo;

    /**
     * 楼层
     */
    @ApiModelProperty(value = "楼层")
    private String storey;

    /**
     * 宿舍号
     */
    @ApiModelProperty(value = "宿舍号")
    private String dormitoryNo;

    /**t
     * 处理日期
     */
    @ApiModelProperty(value = "处理日期")
    private String contactDate;

    /**
     * 处理类型
     */
    @ApiModelProperty(value = "处理类型 1-电话联系学生 2-已联系班主任 " +
            "3-提交给班主任处理 4-班主任处理结果 5-提交给部门经理处理 " +
            "6-部门经理处理结果 7-宿管反馈结束 8-宿管反馈未归寝 " +
            "9-无联系班主任提交，已提交宿管负责人")
    private String type;

    /**
     * 描述/结果
     */
    @ApiModelProperty(value = "描述/结果")
    private String result;

    /**
     * 是否沟通 1-已沟通 2-未沟通
     */
    private String isCall;

    private Long createUserId;

    private String createBy;

    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date createTime;
}
